﻿using System;
using System.Collections.Generic;
using System.Text;
using Best.SmartCms.Dto.Request;

namespace Best.SmartCms.Dto
{
    /// <summary>
    /// 匿名下单Dto
    /// </summary>
    public class OrderDto
    {
        /// <summary>
        /// 订单明细
        /// </summary>
        public List<OrderItemDto> OrderItems { get; set; }

        /// <summary>
        /// 买家留言
        /// </summary>
        public string BuyerMessage { get; set; }

        /// <summary>
        /// 使用优惠券Id
        /// </summary>
        public long? CouponId { get; set; }

        /// <summary>
        /// 使用红包Id
        /// </summary>
        public long? HongbaoId { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public AddressDto Address { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public int PayType { get; set; }
    }

    /// <summary>
    /// 地址
    /// </summary>
    public class AddressDto
    {
        /// <summary>
        /// 收件人
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 县
        /// </summary>
        public string County { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address1 { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }
    }

    /// <summary>
    /// 商品明细
    /// </summary>
    public class OrderItemDto
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 下单数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 商品规格
        /// </summary>
        public long? Guige { get; set; }
    }
}
